package com.yang.core.model;

import com.zhy.base.jpa.model.DefaultModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * Created by xin7k
 * Date: 2019/12/17 0017
 */
@EqualsAndHashCode(callSuper = true)
@Data
@DynamicUpdate
@DynamicInsert
@Accessors(chain = true)
@Entity(name = "qb_product")
public class Product extends DefaultModel {
    @Column(name = "product_name")
    private String productName;

    @Column(name = "product_desc")
    private String productDesc;

    @Column(name = "shop_id")
    private String shopId;

    @Column(name = "enable")
    private Integer enable;

    @Column(name = "price")
    private String price;
}
